import 'dart:convert';

import 'package:flutter_deer/database/beans/get_all_goods_list.dart';
import 'package:flutter_deer/database/tables.dart';
import 'package:flutter_deer/generated/json/base/json_field.dart';
import 'package:flutter_deer/generated/json/get_all_goods_entity.g.dart';

@JsonSerializable()
class GetAllGoodsEntity {
	List<GetAllGoodsList>? list = [];
	String? total = '';

	GetAllGoodsEntity();

	factory GetAllGoodsEntity.fromJson(Map<String, dynamic> json) => $GetAllGoodsEntityFromJson(json);

	Map<String, dynamic> toJson() => $GetAllGoodsEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

class OrderBuyEntity {
	// 商品信息
  GetAllGoodsList? goods;
	// 油品信息
  AppOrderBean? order;
}
